/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.engin;

import static ac.GUI.index.jtab_pages;
import ac.settings.dataModel;
import ac.ui.FrameOperationTemplat;

import ac.uitls.propertiesOperation;
import javax.swing.ImageIcon;

/**
 *
 * @author empcl_000
 */
public class index extends FrameOperationTemplat implements dataModel {

    propertiesOperation po = new propertiesOperation();

    public String[] getCompnyInfo() {
        return db.getRow(TABLE_company, "*", "id=1");
    }

    public ImageIcon getCompnyimage() {
        return db.getimg(TABLE_company, "image", "id=1");
    }

    public void homeOpen() {
        jtab_pages.openPanel(new ac.GUI.home(), po.getWord("label.home"));

    }

    public void sellMoveOpen(String Status, String id) {
        jtab_pages.openPanel(new ac.GUI.moves.sell(Status, id), po.getWord("label.sellMove"));

    }

    public void priceViewOpen() {
        jtab_pages.openPanel(new ac.GUI.moves.pricView("", ""), po.getWord("label.priceview"));

    }

    public void BuyMoveOpen(String Status, String id) {
        jtab_pages.openPanel(new ac.GUI.moves.bay(Status, id), po.getWord("label.bayMove"));

    }

    public void inventoryData() {
        jtab_pages.openPanel(new ac.GUI.inventory.inventoryData2(), po.getWord("label.inventory"));

    }

    public void inventoryInput(String Status, String id) {
        jtab_pages.openPanel(new ac.GUI.moves.inventoryInput(Status, id), po.getWord("label.inventoryInput"));

    }

    public void inventoryOuput(String Status, String data) {
        jtab_pages.openPanel(new ac.GUI.moves.inventoryOutput(Status, data), po.getWord("label.inventoryOutpout"));

    }

    public void treasuryInput(String Status, String[] id) {
        jtab_pages.openPanel(new ac.GUI.treasury.treasuryIn(Status, id), po.getWord("label.treasuryin"));

    }

    public void treasury() {
        jtab_pages.openPanel(new ac.GUI.treasury.treasuryData(), po.getWord("label.treasury"));

    }

    public void sellMoveOpen() {
        jtab_pages.openPanel(new ac.GUI.moves.sell("", ""), po.getWord("label.sellMove"));

    }

    public void BuyMoveOpen() {
        jtab_pages.openPanel(new ac.GUI.moves.bay("", ""), po.getWord("label.bayMove"));

    }

    public void inventoryInput() {
        jtab_pages.openPanel(new ac.GUI.moves.inventoryInput("", ""), po.getWord("label.inventoryInput"));

    }

    public void inventoryOuput() {
        jtab_pages.openPanel(new ac.GUI.moves.inventoryOutput("", ""), po.getWord("label.inventoryOutpout"));

    }

    public void treasuryInput() {
        jtab_pages.openPanel(new ac.GUI.treasury.treasuryIn("", null), po.getWord("label.treasuryin"));

    }

    public void treasuryOutput() {

        jtab_pages.openPanel(new ac.GUI.treasury.treasuryOut("", null), po.getWord("label.treasuryOutput"));

    }

    public void treasuryOutput(String Status, String[] id) {

        jtab_pages.openPanel(new ac.GUI.treasury.treasuryOut(Status, id), po.getWord("label.treasuryOutput"));

    }

    public void otherExpenses() {
        jtab_pages.openPanel(new ac.GUI.treasury.otherEx(), po.getWord("label.otherExpenses"));

    }

    public void clientsOpen() {
        jtab_pages.openPanel(new ac.GUI.archive.jpn_Clients(), po.getWord("label.clientsArchive"));

    }

    public void supOpen() {
        jtab_pages.openPanel(new ac.GUI.archive.jpn_sup(), po.getWord("label.supArchive"));

    }

    public void productsOpen() {
        jtab_pages.openPanel(new ac.GUI.archive.Products(), po.getWord("frame.Products"));

    }

    public void InstallmentOpen(String status, String BillId) {
        jtab_pages.openPanel(new ac.GUI.treasury.Installment(status, BillId), po.getWord("frame.Installment"));

    }

}
